<?php

use yii\db\Migration;
use yii\db\Schema;

class m170614_055719_add_field_leader_id extends Migration
{
    public function up()
    {
        $this->addColumn('{{order_assign}}', 'leader_id', Schema::TYPE_INTEGER. "(11)  NULL  COMMENT '对应领队编号 ' ");
    }

    public function down()
    {
        echo "m170614_055719_add_field_leader_id cannot be reverted.\n";

        return false;
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
